/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

import KoneksiDatabase.Koneksi;
import com.mysql.jdbc.PreparedStatement;
import java.sql.SQLException;

/**
 *
 * @author User
 */
public class UpdateGejala extends DataGejala{
public void insertGejala() throws SQLException{
        PreparedStatement ps = (PreparedStatement) Koneksi.getConnection().prepareStatement("INSERT INTO update(no_id,nama_gejala,nama_obat) VALUES (?,?,?");
        ps.setInt(1, getNoid());
        ps.setString(2, getNamaGejala());
        ps.setString(3, getNamaobat());

        ps.executeUpdate();
   }

}
